package levels
{
	import org.flixel.*;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_8 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.iconic);
			
			Player.spawnAt(14, 6);
			
			Tracker.lives = 1;
			Tracker.mapScore = 1000;
			Tracker.minScore = 3;
			
			addEntity(new RockThrow(8, 12));
			addEntity(new RockThrow(20, 12));
			
			addEntity(new RockThrow(14, 12));
			addEntity(new SpeedBooster(20, 8));
			addEntity(new SpeedBooster(8, 8));
			addEntity(new Slow(5, 15));
			addEntity(new Slow(23, 15));
			
			var t1:Teleporter = new Teleporter(3, 3);
			var t2:Teleporter = new Teleporter(21, 17);
			t1.other = t2;
			t2.other = t1;
			addEntity(t1);
			addEntity(t2);
			
			addEntity(new Trapdoor(14, 4));
			addEntity(new Trapdoor(14, 19));
			addEntity(new Trapdoor(14, 15));
			
			addEntity(new LootBag(9, 2));
			addEntity(new LootBag(19, 2));
			
			addEntity(new LootBag(7, 6));
			addEntity(new LootBag(21, 6));
			
			addEntity(new LootBag(8, 10));
			addEntity(new LootBag(20, 10));
						
			addEntity(new LootBag(25, 3));
			addEntity(new LootBag(7, 17));
			
			addEntity(new LootBag(1, 13));
			addEntity(new LootBag(27, 13));
			
			addEntity(new Robber(28, 8));
			
			
			addEntity(new Robber(0, 8));
			
			addEntity(new Exorcist(0, 10));
			addEntity(new Brute(28, 10));
			
			addEntity(new Exorcist(15, 20));
			addEntity(new Brute(13, 20));
			
			addEntity(new Robber(28, 19));
			addEntity(new Robber(0, 19));
			
			
			gameStart();
		}
	}
}